home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Timer.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  2.5 KB  |  105 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Timer.a
  3. ;
  4. ;    Contains:    Time Manager interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1985-1993, 1995-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__TIMER__') = 'UNDEFINED' THEN
  19. __TIMER__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  28.     include 'OSUtils.a'
  29.     ENDIF
  30.  
  31.  
  32.                                                             ; high bit of qType is set if task is active 
  33. kTMTaskActive                    EQU        $00008000
  34.  
  35.  
  36. ; typedef TMTask *                        TMTaskPtr
  37.  
  38. TMTask                    RECORD 0
  39. qLink                     ds.l    1                ; offset: $0 (0)
  40. qType                     ds.w    1                ; offset: $4 (4)
  41. tmAddr                     ds.l    1                ; offset: $6 (6)
  42. tmCount                     ds.l    1                ; offset: $A (10)
  43. tmWakeUp                 ds.l    1                ; offset: $E (14)
  44. tmReserved                 ds.l    1                ; offset: $12 (18)
  45. sizeof                     EQU *                    ; size:   $16 (22)
  46.                         ENDR
  47. ;
  48. ; pascal void InsTime(QElemPtr tmTaskPtr)
  49. ;
  50.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  51.         ; parameters:
  52.         ;    tmTaskPtr       => A0
  53.         _InsTime:    OPWORD    $A058
  54.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  55.         IMPORT_CFM_FUNCTION InsTime
  56.     ENDIF
  57.  
  58. ;
  59. ; pascal void InsXTime(QElemPtr tmTaskPtr)
  60. ;
  61.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  62.         ; parameters:
  63.         ;    tmTaskPtr       => A0
  64.         _InsXTime:    OPWORD    $A458
  65.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  66.         IMPORT_CFM_FUNCTION InsXTime
  67.     ENDIF
  68.  
  69. ;
  70. ; pascal void PrimeTime(QElemPtr tmTaskPtr, long count)
  71. ;
  72.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  73.         ; parameters:
  74.         ;    tmTaskPtr       => A0
  75.         ;    count           => D0
  76.         _PrimeTime:    OPWORD    $A05A
  77.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  78.         IMPORT_CFM_FUNCTION PrimeTime
  79.     ENDIF
  80.  
  81. ;
  82. ; pascal void RmvTime(QElemPtr tmTaskPtr)
  83. ;
  84.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  85.         ; parameters:
  86.         ;    tmTaskPtr       => A0
  87.         _RmvTime:    OPWORD    $A059
  88.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  89.         IMPORT_CFM_FUNCTION RmvTime
  90.     ENDIF
  91.  
  92. ;
  93. ; pascal void Microseconds(UnsignedWide *microTickCount)
  94. ;
  95.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  96.         _Microseconds:    OPWORD    $A193
  97.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  98.         IMPORT_CFM_FUNCTION Microseconds
  99.     ENDIF
  100.  
  101.  
  102.  
  103.     ENDIF ; __TIMER__ 
  104.  
  105.